package come.bjpowernode.javase.singleton;

public class SingletonEntitySynchronized {
    private static  SingletonEntitySynchronized uniqueSingleton;

    private SingletonEntitySynchronized(){}

    public static synchronized SingletonEntitySynchronized getInstance(){
        if(null == uniqueSingleton){
            uniqueSingleton = new SingletonEntitySynchronized();
        }
        return uniqueSingleton;
    }
}
